#include "Log.hpp"
#include"EPollMain.hpp"
#include "Socket.hpp"
#include <memory>


int main(int argc,char*argv[])
{
    if(argc != 2)
    {
        std::cout << "Usage :" << argv[0] << " port" << std::endl;
    }

    ENABLE_CONSOLE();//将日志信息打印在显示器上

    uint16_t local_port = std::stoi(argv[1]); 
    std::unique_ptr<EPollServer> ssvr = std::make_unique<EPollServer>(local_port);

    ssvr->Init();
    ssvr->Startloop();
    return 0;
}